# _*_ coding: UTF-8 _*_
# @Time     : 2021/11/4 11:23
# @Author   : yangshuaishuai
# @Site     : http://www.hzdledu.cn/
# @File     : case_01.py
# @Software : PyCharm

import unittest
from selenium import webdriver
from prac.page.login import Login
from prac.page.main_简历跟踪 import Main_Jlgz

class LoginCase(unittest.TestCase):
    def setUp(self) -> None:
        self.driver = webdriver.Chrome()
        self.driver.maximize_window()
        self.login_page = Login(self.driver)
        self.main_page = Main_Jlgz(self.driver)

    def test(self):
        self.driver.get('http://192.168.6.189/cloud/#/open/login')
        self.login_page.input_user('admin')
        self.login_page.input_pwd('123456')
        self.login_page.input_vcode('8888')
        self.login_page.click_login()

        self.main_page.click_zpgl()

        self.main_page.click_zpgz()

        self.main_page.click_ctjl()

        self.main_page.click_ggjl()

    def tearDown(self) -> None:
        self.driver.quit()
